package com.cx.mall.demo.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.cx.mall.api.order.OrderInfoFeign;
import com.cx.mall.common.model.order.OrderInfo;
import com.cx.mall.demo.service.IDemoOrderInfoImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoOrderInfoImpl implements IDemoOrderInfoImpl {
    @Autowired
    private OrderInfoFeign orderInfoFeign;
    @SentinelResource(value = "saveOrderInfo") // 标注资源
    @Override
    public void saveOrderInfo(OrderInfo orderInfo) {
        orderInfoFeign.save(orderInfo);
    }

}
